<br /><br /><center>View script for controller <b>Zhuanti</b> and script/action name <b>index</b></center>
<form  name="form1" action="<?php echo $this->baseUrl().'/admin/zhuanti/doset' ?>" method="post">
<input type="hidden" name="zhuanTiId" id="zhuanTiId" value="<?php echo $this->zhuanTi['id']?>">

<table width="100%">
<tr>
	<td width="100%">
		<select multiple="multiple" size="30" style="width:440px; height: 500px" id="sel_place1">
		<?php foreach($this->mselect as $select){?>
			<option value="<?php echo $select['id']?>"><?php echo $select['title']?></option>
		<?php }?>
		</select>
	</td>
	<td>
		<input name="sure1" type="button" id="sure1" onClick="allsel(document.form1.sel_place2,document.form1.sel_place1);" value="<-" />
  &nbsp;
		<input name="sure2" type="button" id="sure2" onClick="allsel(document.form1.sel_place1,document.form1.sel_place2);" value="->" />
	</td>
	<td width="100%">
		<select multiple="multiple" size="30" style="width:440px; height: 500px" id="sel_place2" name="sel_place2[]">

		</select>
	</td>
</tr>
</table>
<input type="submit" value="提交" onclick=/> 
</form>

<script language="javascript">
function allsel(n1,n2)
{
  while(n1.selectedIndex!=-1)
  {
		var indx=n1.selectedIndex;
		var t=n1.options[indx].text;
		var v=n1.options[indx].value;
		n2.options.add(new Option(t,v,true));
		n1.remove(indx);
  }
}
</script>
